home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / PowerPlant / LDimmableView / LDimmableView.h < prev   
Encoding:
C/C++ Source or Header  |  1994-12-29  |  1.1 KB  |  38 lines  |  [TEXT/CWIE]

  1. /*****************************************************************************
  2.     
  3.     LDimmableView.h
  4.     Written by Rick Eames
  5.     ©1994 Natural Intelligence, Inc. && Rick Eames
  6.     
  7.     This class exists for one purpose only: to gray out a view that has 
  8.     been disabled.  This includes graying out all of the subviews within
  9.     that view.  To accomplish this, LDimmableView orders all of the sub-
  10.     views and attachments to draw themselves, checks to see if the view
  11.     is in a disabled state and grays out the view if it is. 
  12.     
  13.     The code also does the right thing if running under color.
  14.     
  15.     You have permission to use this class in any application you develop
  16.     as long as you credit both Rick Eames and Natural Intelligence, Inc. in
  17.     your credits.
  18.     
  19. *****************************************************************************/
  20.  
  21.  
  22. #pragma once
  23.  
  24. #include <LView.h>
  25. #include <LStream.h>
  26.  
  27. class LDimmableView : public LView
  28. {
  29. public:
  30.     LDimmableView(LStream *inStream);
  31.     static LDimmableView *CreateDimmableViewStream(LStream *inStream);
  32.     
  33.     void DimInColor(Rect *inDrawRect, unsigned short tint, Boolean makeLighter);
  34.     
  35.     void Draw(RgnHandle inSuperDrawRgnH);
  36.  
  37. };
  38.